#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
class Point {
private:
	double x, y;
public:
	Point() {
		x = 0;
		y = 0;
	};
	Point(double x_value, double y_value) {
		x = x_value;
		y = y_value;
	}
	double getX() {
		return x;
	}
	double getY() {
		return y;
	}
	void setX(double x_value) {
		x = x_value;
	}
	void setY(double y_value) {
		y = y_value;
	}
	double distanceToAnotherPoint(Point p) {
		return pow(pow((x - p.getX()), 2) + pow(y - p.getY(), 2), 0.5);
	}
};
int main()
{
	int t;
	cin >> t;
	for (int i = 0; i < t; i++) {
		Point p1, p2;
		double a1, b1, a2, b2;
		cin >> a1 >> b1 >> a2 >> b2;
		p1.setX(a1);
		p1.setY(b1);
		p2.setX(a2);
		p2.setY(b2);
		cout << "Distance of Point(";
		cout << fixed << setprecision(2) << p1.getX(); 
		cout << ',';
		cout << fixed << setprecision(2) << p1.getY();
		cout << ") to Point(";
		cout << fixed << setprecision(2) << p2.getX();
		cout << ',';
		cout << fixed << setprecision(2) << p2.getY();
		cout << ") is ";
		cout << fixed << setprecision(2) << p1.distanceToAnotherPoint(p2);
		cout << endl;
	}

	return 0;
}